package com.ruoyi.asset.service.impl;

import java.util.List;

import com.ruoyi.asset.domain.AssetDepreciation;
import com.ruoyi.asset.mapper.AssetDepreciationMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.asset.mapper.AssetDataMapper;
import com.ruoyi.asset.domain.AssetData;
import com.ruoyi.asset.service.IAssetDataService;

/**
 * 资产数据Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-12
 */
@Service
public class AssetDataServiceImpl implements IAssetDataService 
{
    @Autowired
    private AssetDataMapper assetDataMapper;

    /**
     * 查询资产数据
     * 
     * @param id 资产数据主键
     * @return 资产数据
     */
    @Override
    public AssetData selectAssetDataById(Long id)
    {
        return assetDataMapper.selectAssetDataById(id);
    }

    /**
     * 查询资产数据列表
     * 
     * @param assetData 资产数据
     * @return 资产数据
     */
    @Override
    public List<AssetData> selectAssetDataList(AssetData assetData)
    {
        return assetDataMapper.selectAssetDataList(assetData);
    }

    /**
     * 新增资产数据
     * 
     * @param assetData 资产数据
     * @return 结果
     */
    @Override
    public int insertAssetData(AssetData assetData)
    {
        return assetDataMapper.insertAssetData(assetData);
    }

    /**
     * 修改资产数据
     * 
     * @param assetData 资产数据
     * @return 结果
     */
    @Override
    public int updateAssetData(AssetData assetData)
    {
        return assetDataMapper.updateAssetData(assetData);
    }

    /**
     * 批量删除资产数据
     * 
     * @param ids 需要删除的资产数据主键
     * @return 结果
     */
    @Override
    public int deleteAssetDataByIds(Long[] ids)
    {
        return assetDataMapper.deleteAssetDataByIds(ids);
    }

    /**
     * 删除资产数据信息
     * 
     * @param id 资产数据主键
     * @return 结果
     */
    @Override
    public int deleteAssetDataById(Long id)
    {
        return assetDataMapper.deleteAssetDataById(id);
    }


}
